package com.zwps.biz.controller.http;

import com.zwps.biz.api.model.vo.reservoirInfo.WrpRsrHychLevelVO;
import com.zwps.biz.api.model.vo.reservoirwaterlevel.ReservoirWaterLevelVO;
import com.zwps.biz.domain.service.WrpRsrHychService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

@RestController
@Validated
@RequestMapping("brief")
public class WrpRsrHychController {

    @Autowired
    WrpRsrHychService service;
    @Tag(name = "工程概况")
    @Operation(summary = "获取水库水文信息")
    @GetMapping("hydrology/{rscd}")
    public WrpRsrHychLevelVO getHydrology(@NotBlank @Valid @PathVariable String rscd) {
        return  service.getHydrology(rscd);
    }

}
